<?php $this->load->view('home/layout/header') ?>
<div class="newindex widthMax">
    <div class="topApp am-cf">
        <i class="iconfont">&#xe62f;</i>
        <a href="<?php echo $this->config->www_base_url.'wap/scenic/wap_index/wap_download';?>">下载APP</a>
    </div>
    <?php if ( count($advert) > 0 ): ?>
        <div class="lunbo am-slider am-slider-default" data-am-flexslider id="demo-slider-0">
            <ul class="am-slides">
                    <?php foreach ($advert as $val):?>
                        <li>
                            <a href="<?php echo $val->openvar;?>">
                                <img src=<?php echo $this->config->show_image_url($val->picture)?> />
                            </a>
                        </li>
                    <?php endforeach;?>
            </ul>
            <div class="search-df">
                <a href="<?php echo site_url('home/home/search');?>">
                    <i class="iconfont">&#xe65f;</i>
                    <span>搜索</span>
                </a>
            </div>
        </div>
    <?php endif ?>
    <div class="search">
        <a href="<?php echo site_url('home/home/search');?>">
            <div class="search-box">请输入您要搜索的名称</div>
            <i class="iconfont">&#xe65f;</i>
        </a>
    </div>
    <div class="newindex-nav">
        <ul class="am-cf">
            <li>
                <a href="<?php echo site_url('tourism/tourism');?>">
                    <i class="nav-name nav-bg1"></i>
                    <p>商城</p>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('scenic/home/index');?>">
                    <i class="nav-name nav-bg2"></i>
                    <p>景区</p>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->www_base_url.'wap/hotel/wap_hotel.html';?>">
                    <i class="nav-name nav-bg3"></i>
                    <p>酒店</p>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('line/account/grid');?>">
                    <i class="nav-name nav-bg4"></i>
                    <p>旅游度假</p>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->zzdy_url.'zzdy/zzdy/index';?>">
                    <i class="nav-name nav-bg5"></i>
                    <p>1广场</p>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('tourism/shop/grid');?>">
                    <i class="nav-name nav-bg6"></i>
                    <p>品牌站点</p>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('home/home/lottery');?>">
                    <i class="nav-name nav-bg7"></i>
                    <p>幸运抽奖</p>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('home/discountMall/show');?>">
                    <i class="nav-name nav-bg8"></i>
                    <p>积分商城</p>
                </a>
            </li>
        </ul>
    </div>
    <div class="newindex-notice am-cf">
        <div class="notice-title"><img src="/skins/home/images/newindex-notice.png"></div>
        <div class="notice-list">
            <ul class="am-cf notice" id="notice">
                <?php if ( count($news_content) >0 ): ?>
                    <?php foreach ($news_content as $key => $val ): ?>
                        <li>
                            <a href="<?php echo site_url('home/home/notice');?>">
                                <p><?php echo $val->title;?></p>
                                <p><?php echo trim(strip_tags($val->content));?></p>
                            </a>
                        </li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        </div>
    </div>
    <div class="newindex-area flex">
       <ul class="am-cf">
           <?php if ( count($threeSales) >0): ?>
               <?php foreach ($threeSales as $key => $val ): ?>
                   <li>
                       <a class="flex" href="<?php echo $val->url;?>">
                           <img src=<?php echo $this->config->show_image_url($val->images)?> />
                       </a>
                   </li>
               <?php endforeach ?>
           <?php endif ?>
       </ul>
    </div>
    <div class="bargain-buy">
        <div class="title"></div>
        <ul class="buyList am-cf">
            <?php if ( count($valuePurchase) >0): ?>
                <?php foreach ($valuePurchase as $key => $val ): ?>
                    <li>
                        <a href="<?php echo $val->url;?>">
                            <span><?php echo $val->name;?></span>
                            <img src=<?php echo $this->config->show_image_url($val->images)?> />
                            <p>￥<?php echo $val->price;?></p>
                        </a>
                    </li>
                <?php endforeach ?>
            <?php endif ?>
        </ul>
    </div>
    <div class="travel-season">
        <div class="title"></div>
        <div class="travelList flex">
            <?php if ( $outingScenic->num_rows() >0 ): ?>
                <?php foreach ( $outingScenic->result() as $key => $val ): ?>
                    <a class="flex-1" href="<?php echo site_url('scenic/info/index/'.$val->sid); ?>">
                        <div class="listLeft">
                            <img class="lazy" src="/skins/home/images/load.jpg" data-original="<?php echo $this->config->show_image_url($val->minipics, '300-300'); ?>">
                            <p><?php echo $val->name_hanzi; ?></p>
                            <div class="price am-cf">
                                <span>￥<?php echo $val->shop_price; ?></span>
                                <div class="lineBox">
                                    <i>省￥<?php echo ($val->market_price - $val->shop_price); ?></i>
                                </div>
                            </div>
                            <div class="address am-cf">
                                <span><?php echo mb_strstr(trim(mb_strstr($val->address, ' ')), ' ', true); ?></span>
                                <i>已售：<?php echo $val->sales_volume; ?></i>
                            </div>
                        </div>
                    </a>
                <?php endforeach ?>
            <?php endif ?>
            <div class="listRight flex-1">
                <?php if ( count($outingSales) >0 ): ?>
                    <?php foreach ($outingSales as $val):?>
                        <a href="<?php echo $val->url;?>">
                            <div class="cool-summer am-cf">
                                <img src=<?php echo $this->config->show_image_url($val->images)?> />
                                <div class="subtitle">
                                    <span><?php echo $val->name;?></span>
                                    <p><?php echo $val->sub_name;?></p>
                                </div>
                            </div>
                        </a>
                    <?php endforeach;?>
                <?php endif ?>
                <div class="other-box am-cf">
                    <a href="<?php echo site_url('home/home/travelAround');?>">
                        <div class="guide-around">
                            <p>周边游</p>
                           <img src="/skins/home/images/newindex-09.png" />
                        </div>
                    </a>
                    <a href="<?php echo site_url('scenic/info/zhuanqu/zhejiang');?>">
                        <div class="fun-travel">
                            <p>趣旅行</p>
                            <img src="/skins/home/images/newindex-10.png" />
                        </div>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="select">
        <div class="title"></div>
        <ul class="select-list am-cf index-tourism-list">

        </ul>
        <div class="loadmore index-tourism-more"></div>
    </div>
</div>
<div class="newindex-footer">
    <ul class="am-cf">
        <li>
            <a href="<?php echo site_url();?>">
                <i class="iconfont">&#xe649;</i>
                <p class="navactive">首页</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/discountMall/protection'); ?>">
                <i class="iconfont">&#xe65b;</i>
                <p>消费保障</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('tourism/tourismcart'); ?>">
                <i class="iconfont">&#xe654;</i>
                <p>购物车</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/ucenter/index');?>">
                <i class="iconfont">&#xe674;</i>
                <p>我的</p>
            </a>
        </li>
    </ul>
</div>
<?php $this->load->view('home/layout/footer') ?>